﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sellGoodsel.aspx.cs" Inherits="SellerProject.sellGoodsel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="Scripts/AsyncBox/skins/ZCMS/asyncbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="Scripts/jquery.js"></script>
    <script type="text/javascript" src="Scripts/jquery.ztree.min.js"></script>
    <script src="Scripts/AsyncBox/AsyncBox.v1.4.js" type="text/javascript"></script>
    <link href="Scripts/ztreestyle/zTreeStyle.css" rel="stylesheet" type="text/css" />
    <link href="Layout/i_sel.css" rel="Stylesheet" type="text/css" />

<title>淘我想淘_卖家商品发布</title> 
    <script type="text/javascript">
        var zTree;
        var setting = {
            isSimpleData: true,
            treeNodeKey: "id",
            treeNodeParentKey: "pId",
            showLine: true,            
            root: {
                isRoot: true,
                nodes: []
            },
            callback: {
                beforeExpand: zTreebeforeExpand,
                click: treeNodeclick      
            }
        };
        function zTreebeforeExpand(treeId, treeNode) {
            if (zTree.getNodeByParam("pId", treeNode.id) == null) { return false; }
        }
        function refushtreenode() {
            var nodes = zTree.getNodesByParam("level", "0");
            for (i = 0; i < nodes.length; i++) {
                if (zTree.getNodesByParam("pId", nodes[i].id).length == 0) {
                    $("#" + nodes[i].tId + " :button").eq(0).removeClass("switch_roots_close switch_center_close switch_bottom_close");
                }
            }
        }
        function treeNodeclick(event, treeId, treeNode) {
            if (zTree.getNodeByParam("pId", treeNode.id) == null) {
                var frm = document.getElementById('ifrmsel');
                if (frm != null) { frm.src = 'iSelgood.aspx?cid=' + treeNode.id + "&binfo=" + QueryString("binfo"); };
                $("#ifrmsel").hide();
                $("#overlay").show();
            }
            else { zTree.expandNode(treeNode, true, false); }
        };

        $(document).ready(function () {
            setting.expandSpeed = ($.browser.msie && parseInt($.browser.version) <= 6) ? "" : "fast";
        });

        function ifmReSize() {
            $("#ifrmsel").load(function () {
                $("#ifrmsel").css("display","block");
                $("#ifrmsel").height($("#ifrmsel").contents().height() < 300 ? 300 : $("#ifrmsel").contents().height());
                $("#overlay").hide();
                $(this).show();
            })
        };
        function showResult(msg) {
            parent.showResult(msg);
        };
        function showprocess() {
            asyncbox.open({
                  id:"Process",
　　　            html:"Hello AsyncBox! I'm html mode."
　            });
        };
        function QueryString(fieldName) { var urlString = document.location.search; if (urlString != null) { var typeQu = fieldName + "="; var urlEnd = urlString.indexOf(typeQu); if (urlEnd != -1) { var paramsUrl = urlString.substring(urlEnd + typeQu.length); var isEnd = paramsUrl.indexOf('&'); if (isEnd != -1) { return paramsUrl.substring(0, isEnd); } else { return paramsUrl; } } else { return null; } } else { return null; } }
        function showmsg(msg) { alert(msg); };

    </script>
</head>
<body>
    <form id="form1" runat="server">
<%--    <div id="dialog"></div>--%>
    <%--        Contain start  --%>
    <div id="sellmainContent"><div id="sellmcbg">
        <div id="BuyerInfo" class="textArea haveborder">请在下面选择您要发布的商品！
<%--            <asp:DetailsView ID="dvBuyerinfo" runat="server" BorderStyle="None" EnableModelValidation="True" EnableTheming="False" GridLines="None" AutoGenerateRows="False">
                <Fields>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <dl class="buyinfoTips">
                                <dt>您选择了由买家<span id="tName"><%# Eval("ReleaseName")%></span>发布的：<span id="tTitle"><%# Eval("Title") %></span></dt><p />
                                <dd>期待价格在:<span id="tPrice"><%# Eval("ExpectpricesMin")%>&nbsp;-&nbsp;<%# Eval("ExpectpricesMax")%></span>之间</dd><span class="cutline"></span><dd>准备送给：<%# Eval("Owner")%></dd>
                            </dl>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Fields>
            </asp:DetailsView>--%>
        </div>
        <div id="selcontent" class="haveborder clr">
            <div id="leftshow">
                <div class="textArea">
                    <ul id="tree" class="tree"></ul>
                </div></div>
            <div id="rightshow">
                <div id="overlay" class="overlay"></div>
                <iframe style="display:none;" id="ifrmsel" scrolling="no"  src="../iSelgood.aspx?binfo= <% =Request.QueryString["binfo"] %>" width="590px" height="300px" marginwidth="0" marginheight="0" frameborder="0" ></iframe>
             </div>
         </div>   
     </div></div>
    </form>
</body>
</html>